package client;

import rw.ReadWriteFile;
import phi.PhiN;
import method.*;
import method.Tablier;
import affichage.TablierGraph;

public class Launch {

    private Launch() {
        int n = 10;
        TablierGraph tablier = new TablierGraph(new Tablier(n));
        // Tablier.affichage();
//        matrixform();
//        phin();
    }

    private void phin() {
        PhiN phi = new PhiN(512);
        System.out.println(phi);
        ReadWriteFile.writeTextToFile(phi.cptResult);
    }

    private void matrixform() {

        CalculateMethod factors;
        for (int entiermax = 2 ; entiermax <= 10 ; entiermax++) {
            factors = new CalculateMethod(entiermax);
//System.out.println(factors.toText());
            ReadWriteFile.writeTextToFile(factors.toMatrixText(), entiermax);
        }

    }

    public static void main(String[] args) {
        new Launch();
    }
}
